﻿namespace HCore
{
    public static class NetworkDefine
    {
        public const uint CONNECT_MAGIC_NUM = 12345;
        public const uint CONNECTING_MAGIC_NUM = 54321;

        public const int MANAGER_BITS = 10;
        public const int SESSION_BITS = sizeof(uint) * 8 - MANAGER_BITS;

        public const uint SESSION_MASK = uint.MaxValue >> MANAGER_BITS;
        public const uint MANAGER_MASK = uint.MaxValue >> SESSION_BITS;

        public const int LOST_RATE = 0;
        public const int RTT_MIN = 0;
        public const int RTT_MAX = 0;
    }
}